package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbOrderInfoService;
import com.gidgabs.modules.dao.TbOrderInfoDao;
import com.gidgabs.modules.entity.TbOrderInfoEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbOrderInfoServiceImpl implements TbOrderInfoService {
	@Autowired
	private TbOrderInfoDao orderInfoDao;
	
	@Override
	public TbOrderInfoEntity queryObject(Integer id){
		return orderInfoDao.queryObject(id);
	}
	
	@Override
	public List<TbOrderInfoEntity> queryList(Map<String, Object> map){
		return orderInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return orderInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(TbOrderInfoEntity orderInfo){
		orderInfoDao.save(orderInfo);
	}
	
	@Override
	public void update(TbOrderInfoEntity orderInfo){
		orderInfoDao.update(orderInfo);
	}
	
	@Override
	public void delete(Integer id){
		orderInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		orderInfoDao.deleteBatch(ids);
	}
	
}
